package com.note.api;

import com.note.common.ServerResponse;
import com.note.model.Dept;
import com.note.model.Tree;
import com.note.model.User;

import java.util.Map;
import java.util.Set;

public interface UserService {
    User get(Long id);

    ServerResponse<User> list(int pageNum, int pageSize);

    int count(Map<String, Object> map);

    int save(User user);

    int update(User user);

    int remove(Long userId);

    int batchremove(Long[] userIds);

    boolean exit(Map<String, Object> params);

    Set<String> listRoles(Long userId);

    int resetPwd(User user);

    Tree<Dept> getTree();
}
